home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
cstdio.arc
/
SRC.ARC
/
STRCAT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1984-07-29
|
308b
|
15 lines
/* strcat.c - concatenate 2 character strings.
K & R page 44, using pointers.
G. R. Mansfield. 84/06/06.
Ver 1.0-4729.
*/
int strcat(s, t) /* concatenate t to end of s; s must be large enough */
char *s, *t;
{
while (*s) /* find end of t */
s++;
while (*s++ = *t++) /* copy t */
;
}